Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inputformat-to-jstransformer

Package Overview
Dependencies
Maintainers
6
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inputformat-to-jstransformer

Load a JSTransformer from the provided inputFormat.

  • 1.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.5K
increased by5.86%
Maintainers
6
Weekly downloads
 
Created
Source

inputformat-to-jstransformer

Load the first available JSTransformer from the provided inputFormat.

Build Status Dependency Status Greenkeeper badge NPM version

Installation

npm install inputformat-to-jstransformer

API

(inputFormat)

Returns the first package available to process the given inputFormat; false if no package is available.

var jstransformer = require('jstransformer')
var inputFormatToTransformer = require('inputformat-to-jstransformer')

var md = inputFormatToTransformer('md')
// => remarkable, markdown, markdown-it, marko, or supermarked

jstransformer(md).render('# Hello World!').body
// => '<h1>Hello World!</h1>'

.dictionary

The dictionary.json array is also available:

var inputFormats = require('inputformat-to-jstransformer').dictionary
if (inputFormats['tiff']) {
  console.log('Input formats of Tiff are supported!')
}

Update

To update dictionary.json, run:

npm run build

License

MIT

Keywords

FAQs

Package last updated on 08 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc